﻿using System;

namespace DotNetRepository
{
    public class ManyToManyEntityCollectionArgs<TEntity, TManyToManyEntity>
        where TEntity : class, IEntity
        where TManyToManyEntity : class, IEntity, new()
    {
        public IEntityCollection<TManyToManyEntity> InnerCollection;
        public string InnerCollectionForeignKey;
        public Func<TManyToManyEntity, TEntity> GetEntity;
        public Func<TManyToManyEntity, Guid> GetEntityID;
        public Action<TManyToManyEntity, TEntity> SetEntity;
        public bool SaveEntitiesOnSubmit;
    }
}
